import setRouterLifeCycle from "../setRouterLifeCycle";
export default (shopIsClosed) => {
    return new Promise(async (resolve) => {
        let routers = (await import("../../router")).default;
        console.log("看看routers",routers)
        if (shopIsClosed) {
            console.log("商城是关闭状态");
            resolve(routers.closed);
            return;
        }
        let router = routers["ProductionRouter"];
        console.log(router);
        setRouterLifeCycle(router);
        resolve(router);
    });
}